'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.post('/', controller.home.index);
  router.post('/details/:id', controller.home.details);
  router.post('/admin/login', controller.admin.login.login);
  router.post('/admin/', controller.admin.login.index);
};

